;
var db = require("../../javascript/mysql");
var mysql = new db.mysqlClient("accident");

function genProductInfo( ){
    plan = {
        planA:{
            "name":"百万玫瑰意外保障计划",
            "company":"京东安联",
            "year":"18-65",
            "gender":"F",
            "days":"1y",
            "people_count":"1",
            "accident_death":"10000000",
            "nCov_death":"300000",
            "accident_medical":"30000",
            "price":"299.00"
        },
        planB:{
            "name":"百万玫瑰意外保障计划",
            "company":"京东安联",
            "year":"18-65",
            "gender":"F",
            "days":"1y",
            "people_count":"1",
            "accident_death":"10000000",
            "nCov_death":"300000",
            "accident_medical":"50000",
            "price":"369.00"

        }
    }
    for( k in plan ){
        data = plan[k];
        mysql.insertData( data );
    }
    mysql.close();
}
